package com.boot.security.server.model.param;

import com.boot.security.server.model.domain.SysPermission;
import lombok.Data;

import javax.persistence.Column;
import java.util.Objects;

/**
 * @author Ming
 * @version 1.0
 * @date 2020/11/12 14:24
 * @Description
 */
@Data
public class PermissionParam {
    private Integer id;

    private Integer parentid;
    private String name;

    private Integer status = 0;




    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PermissionParam that = (PermissionParam) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
